package org.atfeihu.springcloud.alibaba.service;

import org.atfeihu.springcloud.entities.CommonResult;
import org.atfeihu.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @author wangfeihu
 * @create 2021/9/12 16:57
 */
@Component
public class PaymentFallbackService implements PaymentService {

    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<Payment>(44444, "PaymentFallbackService======> 服务降级返回！！！", new Payment(id, "errorSerial"));
    }
}
